function loading(imgsObj, handleObj) {
				var count = 0;
				//遍历对象，得到对象中属性的个数，即有多少个图片
				for(prop in imgsObj) {
					//					imgsObj[prop];
					count++;
				}
				//图片全都加载完成之后传出的对象
				var imgObj = {};
				var currentIndex = 0;
				for(prop in imgsObj) {
					var img = new Image();
					img.src = imgsObj[prop];
					img.onload = (function(prop) {
						return function() {
							currentIndex++;
							var scale = currentIndex / count * 100;
							if(handleObj.progress) {
								handleObj.progress(scale)
							}
							imgObj[prop] = this;
							if(handleObj.complete) {
								if(currentIndex == count) {
									handleObj.complete(imgObj);
								}
							}
						}
					})(prop)
				}
			}